  <div style="margin: 50px 0 50px 300px">
    
  <% form_for :user, :url => { :action => "create" } do |f| %>

    用户名: <br/>
    <%= text_field :user, :username %><%= error_message_on :user, :username %><br/>
    
    密码:<br/>
    <%= password_field :user,:password %><%= error_message_on :user, :password %><br/>
    
    确认密码:<br/>
    <%= password_field :user, :password_confirmation %><%= error_message_on :user, :password_confirmation %> <br/>
    
    email: <br/>
    <%= f.text_field :email %><br/>
    
    qq:<br/>
    <%= f.text_field :qq %><br/><br/>
    
    <%= submit_tag "提交" %>
  <% end %>

  </div>
  
